package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;
import java.math.BigDecimal;

/**
 * 积分兑换表 t_exchange
 * 
 * @author ruoyi
 * @date 2019-08-07
 */
public class Exchange extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 主键 */
	private Long id;
	/** 订单编号 */
	private Long orderNum;
	/** 数量 */
	private Integer num;
	/** 账号ID */
	private Long accountId;
	/** 金额 */
	private BigDecimal money;
	/** 状态（0正常 1停用） */
	private String status;

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setOrderNum(Long orderNum)
	{
		this.orderNum = orderNum;
	}

	public Long getOrderNum()
	{
		return orderNum;
	}
	public void setNum(Integer num) 
	{
		this.num = num;
	}

	public Integer getNum() 
	{
		return num;
	}
	public void setAccountId(Long accountId) 
	{
		this.accountId = accountId;
	}

	public Long getAccountId() 
	{
		return accountId;
	}
	public void setMoney(BigDecimal money) 
	{
		this.money = money;
	}

	public BigDecimal getMoney() 
	{
		return money;
	}
	public void setStatus(String status) 
	{
		this.status = status;
	}

	public String getStatus() 
	{
		return status;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("order", getOrderNum())
            .append("num", getNum())
            .append("accountId", getAccountId())
            .append("money", getMoney())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
